import { NativeHelper } from "../../native/NativeHelper";
import { IDevice } from "../IDevice";

export class NativeDevice extends IDevice{
    protected _className:string = "sdk.{0}.Device";

    init(type: string): IDevice {
        this._className = this._className.replace("{0}", type);
        return super.init(type);
    }

    vibrate(long: boolean): void {
        if(!this.vibrateAble){
            return;
        }
        NativeHelper.call(this._className, "vibrate", long);
    }
}
